<extend name="Public:common" />
<block name="body">
  <div class="pure-u-11-13">
      <div class="index-content-top">     
            <div class="conten-issue">
                <div><a href="#" id="refresh">刷新申请肖像权状态</a></div>
                <div class="form-box">
                    <form action="__SELF__" method="post">
                        <input type="text" name="username" />
                        <input type="submit" value="搜索"/>
                    </form>
                </div>
            </div>
        </div>
        <div class="zao"></div>
        <table border="1" cellspacing="" cellpadding="" class="index-content-table index-table-head" width="100%">
                <tr>
                    <td>编号</td>
                    <td>卖家</td>
                    <td>模特</td>
                    <td>总交易额</td>
                    <td>开始时间</td>
                    <td>结束时间</td>
                    <td>是否满意</td>
                    <td>卖家评价</td>
                    <td>交易状态</td>
                    <td>操作</td>
                </tr>
            <volist name="list" id="vo">
                <tr>
                    <td>{$vo.id}</td>
                    <td>{$vo.seller}</td>
                    <td>{$vo.model}</td>
                    <td>{$vo.total_money}</td>
                    <td>{$vo.begin_date| date="Y-m-d H:i", ###}</td>
                    <td>{$vo.end_date| date="Y-m-d H:i", ###}</td>
                    <td>
                        <if condition="$vo.is_satisfy eq -1">
                            待评价
                        <elseif condition="$vo.is_satisfy eq 0" />
                            不满意
                        <else />
                            满意
                        </if>
                    </td>
                    <td>{$vo.comment}</td>
                    <td>
                        <switch name='vo.status'>
                            <case value='1'>卖家已申请，待确认</case>
                            <case value='2'>卖家已取消申请</case>
                            <case value='3'>模特拒绝了申请</case>
                            <case value='4'>模特接受了申请</case>
                            <case value='5'>卖家已付款托管到平台</case>
                            <case value='6'>模特可以提现，待评价</case>
                            <case value='7'>卖家已评价</case>
                            <case value='8'>卖家删除了记录</case>
                        </switch>
                    </td>
                    <td><a href="{:U('Admin/Order/delPortraitOrExperience',array('id'=>$vo['id'], 'type'=>1))}" class="index-amend ">删除记录</a></td>
                </tr>
            </volist>
        </table>
        <div class="index-paging">
            {$show_page}
        </div>
    </div>
</block>
<block name='script'>
    <script>
        $(function(){
            $('#refresh').click(function(){
                $.get("{:U('Admin/Order/updatePortraitState')}",function(data){});
            });
        });
    </script>
</block>